package com.pay.order.entity;

import net.sf.oval.constraint.MatchPattern;
import net.sf.oval.constraint.NotNull;

public class MemberDTO {
    private Integer id;
    @NotNull(message = "用户名不能为空，请您先填写用户名")
    private String regUsername;
    @NotNull(message = "手机号不能为空，请您先填写手机号")
    private String telphone;

    private String email;
    @NotNull(message = "密码不能为空，请您先填写手机号")
    @MatchPattern(pattern = "^[0-9_a-zA-Z]{6,20}$", message = "用户名或密码有误，请您重新填写")
    private String regPassword;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRegUsername() {
        return regUsername;
    }

    public void setRegUsername(String regUsername) {
        this.regUsername = regUsername;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRegPassword() {
        return regPassword;
    }

    public void setRegPassword(String regPassword) {
        this.regPassword = regPassword;
    }
}
